package cn.lutu.dao.mapper;

import cn.lutu.protocol.entity.Order;
import cn.lutu.protocol.vo.OrderListVO;
import cn.lutu.protocol.vo.OrderVO;
import cn.lutu.protocol.vo.adminVO.AdminOrderVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @date 2023-06-03
 * @author luoyinhan
 * */
@Repository
public interface OrderMapper extends BaseMapper<Order> {

    List<OrderVO> selectListOrderByStatus(String status, Long id);

    List<OrderVO> selectListByCategoryAndKeyword(Long categoryId, String keyword,Long id);

    List<AdminOrderVO> selectAllOrder();

    List<OrderListVO> selectOrderList();
}
